import request from '@/request/index.js'
import { C2B  } from '../utils/wordtransfer'



/**
 * 查询房间列表
 */
export const list = (data={keyword:''})=>{
  return request.post(`/room/list`,data)
}

/**
 * 查询用户列表
 */
export const userList = (data={keyword:''})=>{
  return request.post(`/reporter/list`,data)
}

/**
 * 查询巡检记录
 */
export const geCordtList = (data)=>{
  return request.post(`/report/page`,data)
}
/**
 * 查询房间列表并分页
 */
export const page = (data={keyword:''})=>{
  return request.post(`/room/page`,data)
}

/**
 * 根据id查询房间信息
 */
export const GetById = ( id )=>{
  return request.post(`/room/get/${id}`)
}

/**
 * 保存房间
 */
export const SaveData = ( data )=>{
  return request.post(`/room/save`,data)
}

/**
 * 更新房间信息
 */
export const UpdateData = ( data )=>{
  return request.post(`/room/update`,data)
}


/**
 * 根据id删除房间信息
 */
export const DelById = ( id )=>{
  return request.post(`/room/delete/${id}`)
}




